package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户投票关系表
 * </p>
 *
 * @author Five Team
 * @since 2018-05-16
 */
@Data
@Accessors(chain = true)
@TableName("t_user_vote")
public class UserVote extends Model<UserVote> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户投票关系表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 投票ID
     */
    private Long voteId;
    /**
     * 投票选项ID（因为包含多选单独一张用户投票选项表）
     */
//    private Long userVoteOptionId;
    private Date createDate;
    private Date updateDate;
    private Integer version;
    private Integer joinCount;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
